package com.supreme.threadserver.handler;

import com.supreme.common.constant.ConsoleColors;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

public class ThreadPoolRejectStrategy implements RejectedExecutionHandler {

    @Override
    public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) {
        ConsoleColors.println(ConsoleColors.RED_BRIGHT, "ThreadPoolRejectStrategy => rejectedExecution");
    }
}
